// 后台服务
const  express =require ('express')
const app =express()
const cors =require('cors')
app.use(cors())
//配置post请求数据的格式转换
app.use(express.urlencoded({extended:true}))
const router = require('./router')

app.use('/',router)

//给前端接口


app.listen(4000,()=>{
  console.log(4000,'端口正在运行中');
})